package ren.kane.asdppp.transaction.employee;

import ren.kane.asdppp.PayrollDatabase;
import ren.kane.asdppp.transaction.Transaction;

/**
 * @author renrk(1275) on 2019-04-15 11:35 AM
 **/
public class DeleteEmployeeTransaction implements Transaction {

    private int itsEmpId;

    public DeleteEmployeeTransaction() {
    }

    public DeleteEmployeeTransaction(int empId) {
        this.itsEmpId = empId;
    }

    @Override
    public void execute() {
        PayrollDatabase.deleteEmployee(itsEmpId);
    }
}
